package com.jdy.nettle.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Auth认证
 */
@RequestMapping("jwt")
@RestController
@Slf4j
public class AuthController {

    @Value("${jwt.token-header}")
    private String tokenHeader;

//    @PostMapping("token")
//    public ObjectRestResponse<String> createAuthenticationToken(
//            @RequestBody JwtAuthenticationRequest authenticationRequest,
//            @Autowired AuthService authService) throws Exception {
//        log.info(authenticationRequest.getUsername()+" require logging...");
//        final String token = authService.login(authenticationRequest);
//        return new ObjectRestResponse<>().data(token);
//    }

}
